package com.itheima.api;

import com.itheima.domain.Student;

import java.util.Objects;

public class Demo03 {

    public static void main(String[] args) {
        //Objects toString
       Student student = new Student("kunkun",26);
       // Student student=null;
      /*  System.out.println(Objects.toString(student));
        System.out.println(student.toString());
        System.out.println(student);*/
        System.out.println(Objects.toString(student, "大帅逼"));

        System.out.println(Objects.isNull(student));
        System.out.println(student==null);

        System.out.println(Objects.nonNull(student));
        System.out.println(student!=null);


    }
}
